package com.sg.dto.integration.framework;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc DeptBusinessIdentityDto
 * @使用场景
 */
@Data
public class DeptBusinessIdentityDto extends BaseDto implements Serializable {

    /**
     * 部门业务身份标识
     */
    @ApiModelProperty("部门业务身份标识")
    private String deptBusinessIdentityCode;

    /**
     * 部门业务身份名称
     */
    @ApiModelProperty("部门业务身份名称")
    private String deptBusinessIdentityName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        DeptBusinessIdentityDto that = (DeptBusinessIdentityDto) o;
        return (
                deptBusinessIdentityCode == that.deptBusinessIdentityCode &&
                        deptBusinessIdentityName == that.deptBusinessIdentityName
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                deptBusinessIdentityCode,
                deptBusinessIdentityName
        );
    }

}
